<template>
  <div class="page-container">
    <div class="login-container">
      <!-- 左侧蓝色区域 -->
      <div class="left-panel">
        <h1 class="title">蚂蚁收旧</h1>
        <div class="tech-tags">
          <span>Vue2</span>
          <span>SpringBoot</span>
          <span>Redis</span>
        </div>
      </div>
      
      <!-- 右侧登录表单 -->
      <div class="right-panel">
        <div class="tabs">
          <span class="tab active">登录</span>
          <span class="tab">手机登录</span>
        </div>
        
        <form class="login-form">
          <div class="form-group">
            <input type="text" placeholder="用户名" value="admin" class="form-control" />
          </div>
          
          <div class="form-group">
            <input type="password" placeholder="密码" value="******" class="form-control" />
          </div>
          
          <div class="form-group verify-group">
            <input type="text" placeholder="验证码" class="form-control verify-input" />
            <div class="verify-code">P7SA</div>
          </div>
          
          <div class="form-actions">
            <label class="remember-me">
              <input type="checkbox" /> 记住我
            </label>
            <a href="#" class="forgot-pwd">忘记密码?</a>
          </div>
          
          <button type="button" class="login-btn">登录</button>
          
          <div class="other-login">
            <button type="button" class="other-btn">二维码登录</button>
            <button type="button" class="other-btn">注册</button>
          </div>
          
          <div class="third-party">
            <span>钉钉</span>
            <span>企业微信</span>
            <span>微信</span>
          </div>
        </form>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Login'
}
</script>

<style scoped>
/* 页面容器 - 带渐变色背景 */
.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* 渐变色背景 */
  background: linear-gradient(135deg, #f0f4f8 10%, #d9e2ec 100%);
  padding: 20px;
  /* background-image: url('~@/assets/images/logo3.png') no-repeat; */
}

/* 登录容器样式 */
.login-container {
  display: flex;
  width: 900px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 100%;
  background-color: #fff; /* 登录框白色背景 */
  
}

/* 左侧面板样式 */
.left-panel {
  flex: 1;
  /* 左侧深蓝色渐变 */
  background: linear-gradient(135deg, #165DFF 0%, #0A47D1 100%);
  color: white;
  padding: 60px 40px;
  box-sizing: border-box;
  position: relative;
  /* background-image: url('~@/assets/images/logo3.png'); */
}

.title {
  font-size: 48px;
  margin-bottom: 60px;
  font-weight: normal;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-tags {
  position: absolute;
  bottom: 60px;
  display: flex;
  gap: 15px;
}

.tech-tags span {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

/* 右侧面板样式 */
.right-panel {
  flex: 1;
  background-color: white;
  padding: 60px 40px;
  box-sizing: border-box;
}

.tabs {
  display: flex;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.tab {
  padding: 10px 0;
  margin-right: 30px;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  position: relative;
  transition: color 0.3s;
}

.tab.active {
  color: #165DFF;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #165DFF;
}

/* 表单样式 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #165DFF;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.verify-group {
  display: flex;
  gap: 10px;
}

.verify-input {
  flex: 2;
}

.verify-code {
  flex: 1;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  letter-spacing: 5px;
  border-radius: 4px;
  color: #333;
  user-select: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.remember-me {
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.forgot-pwd {
  color: #165DFF;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-pwd:hover {
  color: #0A47D1;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #165DFF;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s, transform 0.1s;
}

.login-btn:hover {
  background-color: #0A47D1;
}

.login-btn:active {
  transform: scale(0.99);
}

.other-login {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.other-btn {
  flex: 1;
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.other-btn:hover {
  border-color: #165DFF;
  color: #165DFF;
  background-color: rgba(22, 93, 255, 0.02);
}

.third-party {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}

.third-party span {
  cursor: pointer;
  transition: color 0.3s;
  padding: 5px;
  border-radius: 4px;
}

.third-party span:hover {
  color: #165DFF;
  background-color: rgba(22, 93, 255, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: auto;
  }
  
  .left-panel {
    padding: 30px;
  }
  
  .title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .tech-tags {
    position: static;
    margin-top: 20px;
  }
  
  .right-panel {
    padding: 30px;
  }
}
</style>